<!-- INCLUDE overall_header.html -->

<script type="text/javascript">
function SelectSubCat(){
// ON selection of category this function will work

removeAllOptions(document.postform.SubCat);


if(document.postform.Category.value == 'create'){
addOption(document.postform.SubCat, "", "{L_PLEASE_FORUM}", "");
  <!-- BEGIN forum -->{forum.S_FORUM}<!-- END forum -->
}
if(document.postform.Category.value == 'old'){
addOption(document.postform.SubCat, "", "{L_PLEASE_TOPIC}", "");
  <!-- BEGIN topic -->{topic.S_TOPIC}<!-- END topic -->
}


}
////////////////// 

function removeAllOptions(selectbox)
{
	var i;
	for(i=selectbox.options.length-1;i>=0;i--)
	{
		//selectbox.options.remove(i);
		selectbox.remove(i);
	}
}


function addOption(selectbox, value, text )
{
	var optn = document.createElement("OPTION");
	optn.text = text;
	optn.value = value;

	selectbox.options.add(optn);
}
</script>


<form id="ucp" name="postform" method="post" action="{S_UCP_ACTION}"{S_FORM_ENCTYPE}>

<div class="panel">
	<div class="inner"><span class="corners-top"><span></span></span>
	


	<!-- IF ERROR --><p class="error">{ERROR}</p><!-- ENDIF -->

<fieldset class="fields1">
	

<dl style="clear: left;">
		<dt><label for="subject">{L_SUBJECT}:</label></dt>
		<dd><input type="text" name="subject" id="subject" size="45" maxlength="255" tabindex="2" class="inputbox autowidth" /></dd>
	</dl>




	

	<!-- INCLUDE posting_buttons.html -->

	<div id="smiley-box">
		<!-- IF S_SMILIES_ALLOWED and .smiley -->
			<strong>{L_SMILIES}</strong><br />
			<!-- BEGIN smiley -->
				<a href="#" onclick="insert_text('{smiley.A_SMILEY_CODE}', true); return false;"><img src="{smiley.SMILEY_IMG}" width="{smiley.SMILEY_WIDTH}" height="{smiley.SMILEY_HEIGHT}" alt="{smiley.SMILEY_CODE}" title="{smiley.SMILEY_DESC}" /></a>
			<!-- END smiley -->
		<!-- ENDIF -->
		<!-- IF S_SHOW_SMILEY_LINK and S_SMILIES_ALLOWED-->
			<br /><a href="{U_MORE_SMILIES}" onclick="window.open('{U_MORE_SMILIES}', '_phpbbsmilies', 'HEIGHT=350,resizable=yes,scrollbars=yes,WIDTH=300'); return false;">{L_MORE_SMILIES}</a>
		<!-- ENDIF -->

		<!-- IF BBCODE_STATUS -->
		<!-- IF .smiley --><hr /><!-- ENDIF -->
		{BBCODE_STATUS}<br />
		<!-- IF S_BBCODE_ALLOWED -->
			{IMG_STATUS}<br />
			{FLASH_STATUS}<br />
			{URL_STATUS}<br />			
		<!-- ENDIF -->
{SMILIES_STATUS}
		<!-- ENDIF -->
		
	</div>

	<div id="message-box">
		<textarea name="message" id="message" style="height: 18em;" rows="15" cols="76" tabindex="3" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" class="inputbox"></textarea>
	</div>
    <dl>
		<dt><label for="action">{L_ACTION_TO_TAKE}:</label></dt>
		<dd><SELECT  NAME="Category" onChange="SelectSubCat();" >
<Option value="">{L_ACTION}</option>
</SELECT>&nbsp;<br />
<SELECT id="SubCat" NAME="SubCat">
<Option value="">{L_SELECT_ACTION}</option>
</SELECT></dd>
	</dl>
</fieldset>




		<span class="corners-bottom"><span></span></span></div>
	</div>





	<div class="panel bg2">
		<div class="inner"><span class="corners-top"><span></span></span>
		<fieldset class="submit-buttons">
			
				<input type="submit" name="submit" value="{L_SUBMIT}" class="button1" />&nbsp;

		</fieldset>


		<span class="corners-bottom"><span></span></span></div>
	</div>


	



			

			
		</fieldset>





{S_FORM_TOKEN}</form>


<!-- INCLUDE overall_footer.html -->
